# coding=utf-8
from google.appengine.ext import db
import webapp2
import time

class RemoveTidPage(webapp2.RequestHandler):
    def get(self):
        tid = self.request.get('tid')
        key = tid # db.Key.from_path('Topics',tid)
        db.delete(key)
#         self.response.write('entiry has key[%s] has been removed!' % (key))
#         self.response.write('<a href="/tmp">go back</a>')
        time.sleep(0.5)
        self.redirect('/tmp')
